<?php
include_once 'controller/default.php';
include_once 'model/comment/process.php';
    if(isset($_GET)){
        $comment = new comment();
        if($_GET["menu"] == "commentunaccept"){
            $update = $comment->UnAccept($_GET);
            if($update){
                echo '<script>alert("Hủy Comment thành công.")</script>';
                include 'view/comment/comment_manager.php';
            }else{
                echo '<script>alert("Hủy Comment thất bại.")</script>';
                include 'view/comment/comment_manager.php';
            }
        } else if($_GET["menu"] == "commentdelete"){
            $delete = $comment->Delete($_GET);
            if($delete){
                echo '<script>alert("Xóa Comment thành công.")</script>';
                include 'view/comment/comment_manager.php';
            }else{
                echo '<script>alert("Xóa Comment thất bại.")</script>';
                include 'view/comment/comment_manager.php';
            }
        }
    }
?>